from enum import auto
from typing import Dict

from pydantic import BaseModel

from Lib.EnumLow import EnumLow


class DeviceType(EnumLow):
    APP = auto()
    PC = auto()
    WEB = auto()
    WX_APP = auto()


class UserModel(BaseModel):
    token: str
    user_id: int
    nickname: str
    udp_address: str
    devices: Dict
